/* 网盘搜索页面样式 */
.pansou-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 120px);
    margin: 0 auto;
}

/* 页面进入结果模式时的样式 */
.pansou-container.results-mode {
    align-items: flex-start;
    min-height: auto;
}

.pansou-container.results-mode .pansou-header {
    margin-bottom: 20px;
}

.pansou-container.results-mode .hot-keywords {
    display: none;
}

/* 页头样式 */
.pansou-header {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.pansou-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.pansou-logo .logo-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-right: 12px;
}

.pansou-logo h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: bold;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    border: 1px solid #dfe1e5;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    padding: 8px 16px;
    margin: 0 auto 20px;
    transition: box-shadow 0.3s;
}

.search-box:hover,
.search-box:focus-within {
    box-shadow: 0 1px 8px rgba(32, 33, 36, 0.4);
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    padding: 8px 0;
}

#search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 8px;
    color: #3498db;
    font-size: 18px;
}

/* 热搜关键词样式 */
.hot-keywords {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

.hot-keywords-title {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 10px;
}

.hot-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-keyword {
    background-color: #f1f3f4;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 14px;
    color: #202124;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hot-keyword:hover {
    background-color: #e8eaed;
}

.hot-keyword-loading {
    color: #9aa0a6;
    font-size: 14px;
}

.error-keywords {
    color: #d93025;
    font-size: 14px;
}

.no-keywords {
    color: #5f6368;
    font-size: 14px;
}

/* 筛选选项样式 */
.filter-options {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.filter-group {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
}

.filter-label {
    width: 60px;
    color: #5f6368;
    font-size: 14px;
    margin-right: 10px;
}

.filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-item {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-item:hover {
    background-color: #f1f3f4;
    color: #1a73e8;
}

.filter-item.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

/* 加载状态样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    width: 100%;
    color: #5f6368;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误消息样式 */
.error-message {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    background-color: #fdeaea;
    color: #d93025;
    text-align: center;
}

/* 搜索结果样式 */
.search-results {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.results-info {
    color: #70757a;
    font-size: 14px;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #5f6368;
    font-size: 16px;
}

.result-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.result-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.result-title {
    font-size: 18px;
    color: #1a0dab;
    margin-right: 12px;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

.result-type {
    padding: 3px 8px;
    background-color: #e8f0fe;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

.result-user {
    color: #70757a;
    font-size: 13px;
}

.result-files {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    font-size: 14px;
    color: #3c4043;
    max-height: 120px;
    overflow: hidden;
}

.file-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.file-line:last-child {
    margin-bottom: 0;
}

.result-time {
    color: #70757a;
    font-size: 13px;
    margin: 8px 0;
}

.result-link-container {
    margin-top: 10px;
}

.result-link {
    color: #1a73e8;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    cursor: pointer;
}

.result-link:hover {
    text-decoration: underline;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-button {
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0 2px;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.pagination-button:hover {
    background-color: #e8f0fe;
}

.pagination-button.active {
    background-color: #1a73e8;
    color: white;
    font-weight: 500;
}

.pagination-button.prev,
.pagination-button.next {
    padding: 0 10px;
}

.pagination-button.disabled {
    color: #bdc1c6;
    cursor: not-allowed;
}

.pagination-button.disabled:hover {
    background-color: transparent;
}

.pagination-ellipsis {
    color: #5f6368;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* 复制成功提示 */
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pansou-container {
        padding: 15px;
    }
    
    .pansou-logo .logo-icon {
        font-size: 2rem;
    }
    
    .pansou-logo h1 {
        font-size: 1.5rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .hot-keywords {
        max-width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 8px;
        width: 100%;
    }
    
    .result-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-title {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .result-type,
    .result-user {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .hot-keywords-list {
        gap: 6px;
    }
    
    .hot-keyword {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .filter-items {
        gap: 6px;
    }
    
    .filter-item {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination-button {
        min-width: 30px;
        height: 30px;
        font-size: 13px;
    }
} 